<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        span {
            float: left;
            width: 60px;
            height: 40px;
            border: 1px solid red;
        }
        
        h1 {
            clear: both;
        }
        
        .div2 {
            width: 300px;
            height: 200px;
            border: 1px solid black;
        }
        
        .span1 {
            height: 20px;
            /* width: 180px; */
        }
        
        p {
            clear: left;
        }
        
        .divp>img {
            width: 70px;
            height: 70px;
        }
    </style>
</head>

<body>
    <h2>我是二级标题</h2>
    <span>我是span</span>
    <h1>我是一级标题</h1>
    <div class="div2">
        <div class="divp"><img src="./bg4.jpg" alt=""></div>
        <p>sakjjfduie3hfjknsvukaerjnlk</p>
        <span class="span1">1</span>
        <span>2</span>
        <span>3</span>
        <p>llllllll</p>
    </div>
</body>

</html>